/* 
 * File:   UnitOfWorkParserTest.cpp
 * Author: max
 *
 * Created on Apr 7, 2013, 1:48:09 PM
 */

#include <stdlib.h>
#include <iostream>
#include "UnitOfWorkParser.h"
#include "UnitOfWork.h"

using namespace std;
using namespace TP3::Working;

/*
 * Simple C++ Test Suite
 */

void test1() {
    std::cout << "UnitOfWorkParserTest test 1" << std::endl;
    
    string operating = "casa";
    
    UnitOfWorkParser parser;
    UnitOfWork* work = parser.parse("/home/Max/facultad/75.42.TPS/75.42.TP3.2013.1/Tests/E1/reglas.txt", ';', &cout);
    work->apply(operating);
    cout << endl << "fin" << endl;
}

void test2() {
    std::cout << "UnitOfWorkParserTest test 2" << std::endl;
    std::cout << "%TEST_FAILED% time=0 testname=test2 (UnitOfWorkParserTest) message=error message sample" << std::endl;
}

int main(int argc, char** argv) {
    std::cout << "%SUITE_STARTING% UnitOfWorkParserTest" << std::endl;
    std::cout << "%SUITE_STARTED%" << std::endl;

    std::cout << "%TEST_STARTED% test1 (UnitOfWorkParserTest)" << std::endl;
    test1();
    std::cout << "%TEST_FINISHED% time=0 test1 (UnitOfWorkParserTest)" << std::endl;

//    std::cout << "%TEST_STARTED% test2 (UnitOfWorkParserTest)\n" << std::endl;
//    test2();
//    std::cout << "%TEST_FINISHED% time=0 test2 (UnitOfWorkParserTest)" << std::endl;

    std::cout << "%SUITE_FINISHED% time=0" << std::endl;

    return (EXIT_SUCCESS);
}

